package vcp.gui.forms;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;
/**
 * New Rate form
 */
public class NewRateForm extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JTextField textAmount;
	@SuppressWarnings("rawtypes")
	private JComboBox comboLotNum;
	@SuppressWarnings("rawtypes")
	private JComboBox comboRateType;
	private JButton btnSave;

	public JTextField getTextAmount() {
		return textAmount;
	}

	public void setTextAmount(JTextField textAmount) {
		this.textAmount = textAmount;
	}

	@SuppressWarnings("rawtypes")
	public JComboBox getComboLotNum() {
		return comboLotNum;
	}

	public void setComboLotNum(@SuppressWarnings("rawtypes") JComboBox comboLotNum) {
		this.comboLotNum = comboLotNum;
	}

	@SuppressWarnings("rawtypes")
	public JComboBox getComboRateType() {
		return comboRateType;
	}

	public void setComboRateType(@SuppressWarnings("rawtypes") JComboBox comboRateType) {
		this.comboRateType = comboRateType;
	}

	public JButton getBtnSave() {
		return btnSave;
	}

	public void setBtnSave(JButton btnSave) {
		this.btnSave = btnSave;
	}

	/**
	 * Create the panel.
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public NewRateForm() {
		
		JLabel lblLotNum = new JLabel("#Lot");
		lblLotNum.setBounds(12, 13, 56, 16);
		
		JLabel lblNewLabel_1 = new JLabel("Type");
		lblNewLabel_1.setBounds(133, 13, 56, 16);
		
		String[] lots = { "1", "2", "3", "4", "5", "6" };
		comboLotNum = new JComboBox(lots);
		comboLotNum.setBounds(78, 10, 43, 22);
		
		String[] types = {"Occasional","One-time","Monthly subscription single car","Monthly subscription multiple cars","Complete monthly subscription single car"};
		comboRateType = new JComboBox(types);
		comboRateType.setBounds(189, 10, 249, 22);
		
		textAmount = new JTextField();
		textAmount.setBounds(78, 45, 360, 22);
		textAmount.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("Amount");
		lblNewLabel_2.setBounds(12, 48, 56, 16);
		
		btnSave = new JButton("save");
		btnSave.setBounds(341, 77, 97, 25);
		setLayout(null);
		add(lblLotNum);
		add(lblNewLabel_1);
		add(comboLotNum);
		add(comboRateType);
		add(textAmount);
		add(lblNewLabel_2);
		add(btnSave);

	}
}
